local Action=Class(function(self,inst)
self.inst=inst

self.onDoAction=nil
self.onDoTargetAction=nil


self.canActOn=nil
self.canActOnPoint=nil
self.canActOnTarget=nil
end)

function Action:CanActOn(doer,target)
if self.canActOn then
return self.canActOn(self.inst,doer,target)
end
return false
end

function Action:CanActOnPoint(doer,pos)
if self.canActOnPoint then
return self.canActOnPoint(self.inst,doer,pos)
end
return false
end

return Action